package com.mysoft.gfyx.demo.handler;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class TestJobHandler {

    @XxlJob(value="TestJobHandler", init = "init", destroy = "destroy")
    public void execute() {
        System.out.println("该听音乐了！");
    }

    public void init() {
        System.out.println("音乐必不可少！");
    }

    public void destroy() {
        System.out.println("耳朵不舒服……");
    }
}
